﻿using Entitas;
using UnityEngine;

public class PlayerSpawnSystem : IInitializeSystem
{
    private readonly Contexts contexts;

    public PlayerSpawnSystem (Contexts contexts)
    {
        this.contexts = contexts;
    }
    
    public void Initialize ()
    {
        EntityUtils.CreatePlayerEntity (contexts, Vector2.zero, Vector2.zero);
    }
}